/*
               File: PRUEBA
        Description: PRUEBA
             Author: GeneXus Java Generator version 8_0_9-040
       Generated on: 28 de Setiembre de 2010 13:4:20.27
       Program type: Main program
          Main DBMS: sqlserver
*/
import com.genexus.*;
import com.genexus.ui.*;
import com.genexus.db.*;
import com.genexus.distributed.*;
import com.genexus.uifactory.*;
import java.sql.*;

public final class uprueba extends GXWorkpanel
{
   public static void main( String args[] )
   {
      Application.init(GXcfg.class);
      uprueba pgm = new uprueba (-1);
      Application.realMainProgram = pgm;
      pgm.executeCmdLine(args);
   }

   public void executeCmdLine( String args[] )
   {

      execute();
   }

   public uprueba( int remoteHandle )
   {
      super( remoteHandle , new ModelContext( uprueba.class ));
   }

   public uprueba( int remoteHandle ,
                   ModelContext context )
   {
      super( remoteHandle , context);
   }

   protected String getObjectName( )
   {
      return "PRUEBA" ;
   }

   protected String getFrmTitle( )
   {
      return "PRUEBA" ;
   }

   protected GXMenuBar getMenuBar( )
   {
      return ApplicationUI.getDefaultMenuBar(this) ;
   }

   protected int getFrmTop( )
   {
      return 0 ;
   }

   protected int getFrmLeft( )
   {
      return 0 ;
   }

   protected int getFrmWidth( )
   {
      return 610 ;
   }

   protected int getFrmHeight( )
   {
      return 318 ;
   }

   protected String getHelpId( )
   {
      return "HLP_WPRUEBA.htm";
   }

   protected int getFrmBackground( )
   {
      return UIFactory.getColor(15) ;
   }

   protected int getFrmForeground( )
   {
      return UIFactory.getColor(6) ;
   }

   protected boolean isMainProgram( )
   {
      return true;
   }

   protected boolean isModal( )
   {
      return false;
   }

   protected boolean hasDBAccess( )
   {
      return false;
   }

   protected int getRefreshTimeout( )
   {
      return 0 ;
   }

   public boolean getRefreshTimeoutAlways( )
   {
      return true ;
   }

   protected boolean getPaintAfterStart( )
   {
      return true ;
   }

   protected int getBorderStyle( )
   {
      return 2 ;
   }

   protected boolean getMaxButton( )
   {
      return true ;
   }

   protected boolean getMinButton( )
   {
      return true ;
   }

   protected boolean getCtrlBox( )
   {
      return true ;
   }

   protected boolean getShowInTaskbar( )
   {
      return true ;
   }

   protected String getFormIcon( )
   {
      return "" ;
   }

   protected boolean getAutocenter( )
   {
      return true ;
   }

   public void execute( )
   {
      execute_int();
   }

   private void execute_int( )
   {
      start();
   }

   protected void standAlone( )
   {
      /* Execute user event: E11V0A2 */
      E11V0A2 ();
   }

   protected void GXRefresh( )
   {
      ControlsToVariables();
      GXRefreshCommand();
   }

   protected void GXRefreshCommand( )
   {
      standAlone();
      VariablesToControls();
      /* End function GeneXus Refresh */
   }

   public void GXEnter( )
   {
      /* Execute user event: E12V0A2 */
      E12V0A2 ();
      if ( returnInSub )
      {
         if (canCleanup()) {
            returnInSub = true;
            cleanup();
         }
         if (true) return;
      }
   }

   public void E12V0A2( )
   {
      eventLevelContext();
      /* Enter Routine */
      new rprueba(remoteHandle, context).execute( ) ;
   }

   protected void nextLoad( )
   {
   }

   protected void E11V0A2( )
   {
      /* Load Routine */
      nextLoad();
   }

   protected void screen( )
   {
      GXPanel1 = new GXPanel(this, 3 , 28 , 610 , 318 );
      this.setIBackground(UIFactory.getColor(15));
      this.setIForeground(UIFactory.getColor(6));
      GXPanel1.refreshFrame();
      edtavPgmdesc = new GUIObjectString ( new GXEdit(30, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", UIFactory.getFont( "Courier New", 0, 9),97, 72, 220, 21, GXPanel1, false, ILabelConstants.BORDER_3D, GXTypeConstants.CHAR, true, true) , GXPanel1 , 97 , 72 , 220 , 21 , UIFactory.getColor(5) , UIFactory.getColor(8) , UIFactory.getFont( "Courier New", 0, 9) , false , "AV4Pgmdesc" );
      ((GXEdit) edtavPgmdesc.getGXComponent()).setAlignment(ILabelConstants.LEFT);
      edtavPgmdesc.addFocusListener(this);
      edtavPgmdesc.getGXComponent().setHelpId("HLP_WPRUEBA.htm");
      edtavPgmname = new GUIObjectString ( new GXEdit(11, "XXXXXXXXXXX", UIFactory.getFont( "Courier New", 0, 9),97, 98, 87, 21, GXPanel1, false, ILabelConstants.BORDER_3D, GXTypeConstants.CHAR, true, true) , GXPanel1 , 97 , 98 , 87 , 21 , UIFactory.getColor(5) , UIFactory.getColor(8) , UIFactory.getFont( "Courier New", 0, 9) , false , "AV5Pgmname" );
      ((GXEdit) edtavPgmname.getGXComponent()).setAlignment(ILabelConstants.LEFT);
      edtavPgmname.addFocusListener(this);
      edtavPgmname.getGXComponent().setHelpId("HLP_WPRUEBA.htm");
      edtavTime = new GUIObjectString ( new GXEdit(8, "XXXXXXXX", UIFactory.getFont( "Courier New", 0, 9),97, 124, 66, 21, GXPanel1, false, ILabelConstants.BORDER_3D, GXTypeConstants.CHAR, true, true) , GXPanel1 , 97 , 124 , 66 , 21 , UIFactory.getColor(5) , UIFactory.getColor(8) , UIFactory.getFont( "Courier New", 0, 9) , false , "Gx_time" );
      ((GXEdit) edtavTime.getGXComponent()).setAlignment(ILabelConstants.LEFT);
      edtavTime.addFocusListener(this);
      edtavTime.getGXComponent().setHelpId("HLP_WPRUEBA.htm");
      edtavToday = new GUIObjectDate ( new GXEdit(8, "99/99/99", UIFactory.getFont( "Courier New", 0, 9),97, 150, 66, 21, GXPanel1, false, ILabelConstants.BORDER_3D, GXTypeConstants.DATE, true, true) , GXPanel1 , 97 , 150 , 66 , 21 , UIFactory.getColor(5) , UIFactory.getColor(8) , UIFactory.getFont( "Courier New", 0, 9) , false , "Gx_date" );
      ((GXEdit) edtavToday.getGXComponent()).setAlignment(ILabelConstants.LEFT);
      edtavToday.addFocusListener(this);
      edtavToday.getGXComponent().setHelpId("HLP_WPRUEBA.htm");
      bttbtt8 = UIFactory.getGXButton( GXPanel1 , "Confirmar" ,  83 ,  209 ,  274 ,  57 , UIFactory.getFont( "MS Shell Dlg", 0, 8) );
      bttbtt8.setTooltip("Confirmar");
      bttbtt8.addActionListener(this);
      lbllbl2 = UIFactory.getLabel(GXPanel1, "prueba de instalador SUN", ILabelConstants.LEFT, Integer.MAX_VALUE, UIFactory.getColor(8), UIFactory.getFont( "MS Sans Serif", IFontConstants.BOLD, 8), false, ILabelConstants.BORDER_NONE , 96 , 27 , 147 , 13 );
      rctrct7 = UIFactory.getGXRectangle( GXPanel1 , 1 , 68 , 16 , 284 , 173 , Integer.MAX_VALUE , UIFactory.getColor(8) , ILabelConstants.BORDER_SINGLE );
      focusManager.setControlList(new IFocusableControl[] {
                edtavPgmdesc ,
                edtavPgmname ,
                edtavTime ,
                edtavToday ,
                bttbtt8
      });
   }

   protected void setFocusFirst( )
   {
      setFocus(bttbtt8, true);
   }

   public void reloadDynamicLists( int id )
   {
   }

   protected void VariablesToControls( )
   {
      edtavPgmdesc.setValue( AV4Pgmdesc );
      edtavPgmname.setValue( AV5Pgmname );
      edtavTime.setValue( Gx_time );
      edtavToday.setValue( Gx_date );
   }

   protected void ControlsToVariables( )
   {
      AV4Pgmdesc = edtavPgmdesc.getValue() ;
      AV5Pgmname = edtavPgmname.getValue() ;
      Gx_time = edtavTime.getValue() ;
      Gx_date = edtavToday.getValue() ;
   }

   protected void eventNoLevelContext( )
   {
      ControlsToVariables();
   }

   protected void eventLevelContext( )
   {
      ControlsToVariables();
   }

   protected void eventLevelResetContext( )
   {
   }

   protected void reloadGridRow( )
   {
   }

   protected void actionEventDispatch( Object eventSource )
   {
      if ( bttbtt8.isEventSource(eventSource) ) {
         /* Execute user event: E12V0A2 */
         E12V0A2 ();
         return;
      }
   }

   protected void setCurrentGXCursor( Object eventSource )
   {
      if ( edtavPgmdesc.isEventSource(eventSource) ) {
         setGXCursor( edtavPgmdesc.getGXCursor() );
         return;
      }
      if ( edtavPgmname.isEventSource(eventSource) ) {
         setGXCursor( edtavPgmname.getGXCursor() );
         return;
      }
      if ( edtavTime.isEventSource(eventSource) ) {
         setGXCursor( edtavTime.getGXCursor() );
         return;
      }
      if ( edtavToday.isEventSource(eventSource) ) {
         setGXCursor( edtavToday.getGXCursor() );
         return;
      }
   }

   protected void gotFocusEventDispatch( Object eventSource )
   {
   }

   protected void focusEventDispatch( Object eventSource )
   {
   }

   protected void updateAttributes( Object eventSource )
   {
      if ( edtavPgmdesc.isEventSource(eventSource) ) {
         AV4Pgmdesc = edtavPgmdesc.getValue() ;
         return;
      }
      if ( edtavPgmname.isEventSource(eventSource) ) {
         AV5Pgmname = edtavPgmname.getValue() ;
         return;
      }
      if ( edtavTime.isEventSource(eventSource) ) {
         Gx_time = edtavTime.getValue() ;
         return;
      }
      if ( edtavToday.isEventSource(eventSource) ) {
         Gx_date = edtavToday.getValue() ;
         return;
      }
   }

   protected void itemEventDispatch( Object eventSource )
   {
   }

   public void mouseEventDispatch( Object eventSource ,
                                   int modifier )
   {
   }

   public boolean keyEventDispatch( Object eventSource ,
                                    int keyCode )
   {
      if (triggerEventEnter(eventSource, keyCode)) {
         /* Execute user event: E12V0A2 */
         E12V0A2 ();
         return true ;
      }
      return false;
   }

   public static Object refClasses( )
   {
      GXutil.refClasses(wprueba.class);
      return new GXcfg();
   }

   public boolean menuActionPerformed( String action )
   {
      return false;
   }

   public void refreshArray( String array )
   {
   }

   protected void cleanup( )
   {
      if (cleanedUp) {
         return  ;
      }
      if (!exitExecuted) {
         exitExecuted = true;
         GXExit();
      }
      super.cleanup();
      Application.cleanup(context, this, remoteHandle);
   }

   /* Aggregate/select formulas */
   public void initialize( )
   {
      returnInSub = false ;
      AV4Pgmdesc = "" ;
      AV5Pgmname = "" ;
      Gx_time = "" ;
      Gx_date = GXutil.nullDate() ;
      reloadDynamicLists(0);
      Gx_date = GXutil.today( ) ;
      edtavToday.setValue(Gx_date);
      Gx_time = GXutil.time( ) ;
      edtavTime.setValue(Gx_time);
      AV5Pgmname = "UPRUEBA" ;
      edtavPgmname.setValue(AV5Pgmname);
      AV4Pgmdesc = "PRUEBA" ;
      edtavPgmdesc.setValue(AV4Pgmdesc);
      /* GeneXus formulas. */
      Gx_date = GXutil.today( ) ;
      edtavToday.setValue(Gx_date);
      Gx_time = GXutil.time( ) ;
      edtavTime.setValue(Gx_time);
      AV5Pgmname = "UPRUEBA" ;
      edtavPgmname.setValue(AV5Pgmname);
      AV4Pgmdesc = "PRUEBA" ;
      edtavPgmdesc.setValue(AV4Pgmdesc);
      Gx_err = 0 ;
   }

   protected short Gx_err ;
   protected String AV4Pgmdesc ;
   protected String AV5Pgmname ;
   protected String Gx_time ;
   protected java.util.Date Gx_date ;
   protected boolean returnInSub ;
   protected GXPanel GXPanel1 ;
   protected GUIObjectString edtavPgmdesc ;
   protected GUIObjectString edtavPgmname ;
   protected GUIObjectString edtavTime ;
   protected GUIObjectDate edtavToday ;
   protected IGXButton bttbtt8 ;
   protected ILabel lbllbl2 ;
   protected IGXRectangle rctrct7 ;
}

